home *** CD-ROM | disk | FTP | other *** search
- Path: newsroom.hitc.com!kfreeman
- From: kfreeman@mandrake.HITC.COM (Keith Freeman)
- Newsgroups: comp.lang.c++
- Subject: Re: A garbage collection problem in C++
- Date: 21 Mar 1996 17:42:30 GMT
- Organization: Hughes Team (EOSDIS)
- Message-ID: <KFREEMAN.96Mar21124230@mandrake.HITC.COM>
- References: <4ic3vb$k0@mo6.rc.tudelft.nl> <4ic43s$k0@mo6.rc.tudelft.nl>
- <WALD.96Mar16094305@woodpecker.lcs.mit.edu>
- <4ifjh9$p6g@mo6.rc.tudelft.nl>
- NNTP-Posting-Host: mandrake.hitc.com
- In-reply-to: Ejo Schrama's message of 16 Mar 1996 23:40:25 GMT
-
- In article <4ifjh9$p6g@mo6.rc.tudelft.nl> Ejo Schrama <schrama@geo.tudelft.nl> writes:
- > >...
- > >> delete[] a,b;
- > >...
- > >
- > >What do you mean "second argument"? It looks like that statement should
- > ^^^^^^^^^^^^^^^
- > I refered to b
- >
-
- But b is not a "second argument"; the delete [] operator only takes
- one argument, what your code does is use *comma* operator. Here's
- another common example of misuse of the comma:
-
- char a[10][10]; // 2-dimensional array
-
- a[2,3] = 0; // WRONG! tries to assign 0 to a[2]
-
- keith freeman
- kfreeman@eos.hitc.com
-
-